<app:aside-block class='aside-block-highlighted' heading='Tombstone' visibility-model='Room.asidePanels.view'>
<div>
<div class='object-properties-id'>
ID: {{Room.selectedObject._id}}
</div>
<div>
<label>Position:</label>
{{Room.selectedObject.x}}, {{Room.selectedObject.y}}
</div>
<div ng:if='Room.gameTime'>
<label>Decay in:</label>
{{Room.selectedObject.decayTime - Room.gameTime}}
</div>
<div ng:if='Room.gameTime' title='{{Room.selectedObject.deathTime}}'>
<label>Death time:</label>
{{Room.gameTime - Room.selectedObject.deathTime}} ticks ago
</div>
<div class='body'>
<label class='body-header'>
Store
<div class='pull-right'>
{{Room.calcResources(Room.selectedObject) | round}}
</div>
</label>
<div ng:if='!Room.calcResources(Room.selectedObject)'>Empty</div>
<table class='carry-resource'>
<tr ng:if='amount &gt; 0' ng:repeat='(resourceType, amount) in Room.selectedObject.store'>
<td>{{amount | number}}&nbsp;&times;&nbsp;</td>
<td>
<img class='resource-type' ng-src='https://s3.amazonaws.com/static.screeps.com/upload/mineral-icons/{{resourceType}}.png' uib-tooltip='{{Room.resourceTypeNames[resourceType]}}'>
</td>
</tr>
</table>
</div>
<div class='body' ng-if='Room.selectedObject.creepId'>
<label class='body-header'>
Creep
</label>
<div>
<label>ID:</label>
{{Room.selectedObject.creepId}}
</div>
<div>
<label>Owner:</label>
<a ng:href="#!{{ 'top.profile' | routeSegmentUrlStateless:{username: Room.users[Room.selectedObject.user].username} }}" ng:if='!Room.isSelectedObjectNPC()' title='View user profile'>
<img app:badge-src='Room.users[Room.selectedObject.user].badge'>
{{Room.users[Room.selectedObject.user].username}}
</a>
<span ng:if='Room.isSelectedObjectNPC()'>
<a>
<img app:badge-src='Room.users[Room.selectedObject.user].badge'>
</a>
{{Room.users[Room.selectedObject.user].username}}
</span>
</div>
<div>
<label>Name:</label>
{{Room.selectedObject.creepName}}
</div>
<div>
<label>Time to live:</label>
{{Room.selectedObject.creepTicksToLive}}
</div>
<div ng-if='Room.selectedObject.creepSaying'>
<label>Last saying:</label>
{{Room.selectedObject.creepSaying}}
</div>
<label class='body-header'>
Body
</label>
<div class='bodypart' ng:class="'type-'+i" ng:repeat='i in Room.selectedObject.creepBody | orderByNameNumerically track by $index' tooltip-append-to-body='true' tooltip-placement='bottom' uib-tooltip-html="('type: ' + i) | trust"></div>
</div>
<div class='body' ng-if='Room.selectedObject.powerCreepId'>
<label class='body-header'>
Power Creep
</label>
<div>
<label>ID:</label>
{{Room.selectedObject.powerCreepId}}
</div>
<div>
<label>Owner:</label>
<a ng:href="#!{{ 'top.profile' | routeSegmentUrlStateless:{username: Room.users[Room.selectedObject.user].username} }}" ng:if='!Room.isSelectedObjectNPC()' title='View user profile'>
<img app:badge-src='Room.users[Room.selectedObject.user].badge'>
{{Room.users[Room.selectedObject.user].username}}
</a>
<span ng:if='Room.isSelectedObjectNPC()'>
{{Room.users[Room.selectedObject.user].username}}
</span>
</div>
<div>
<label>Name:</label>
{{Room.selectedObject.powerCreepName}}
</div>
<div>
<label>Class:</label>
{{Room.selectedObject.powerCreepClassName}}
</div>
<div>
<label>Time to live:</label>
{{Room.selectedObject.powerCreepTicksToLive}}
</div>
<div ng-if='Room.selectedObject.powerCreepSaying'>
<label>Last saying:</label>
{{Room.selectedObject.powerCreepSaying}}
</div>
<label class='body-header'>
Powers
</label>
<div class='power-icon-container' ng-repeat='(powerId,power) in Room.selectedObject.powerCreepPowers'>
<app-power-icon level='power.level' power-id='powerId' timer-max='Room.Constants.POWER_INFO[powerId].cooldown' timer='Room.gameTime ? power.cooldownTime - Room.gameTime : undefined'></app-power-icon>
</div>
</div>
<ng-include src="'room-object-effects'"></ng-include>
</div>
</app:aside-block>
